<!-- catelist pid=$pid -->
<!-- if $list.tree -->
<nav data-am-widget="menu" class="am-menu am-menu-stack">
	<ul class="am-menu-nav am-avg-sm-1">
		<!-- loop from=$list.tree key=$key value=$value id=$tmpid -->
		<li class="{if $value.sublist}am-parent{/if}{if($cate_rs && ($cate_rs.id == $value.id || $cate_rs.parent_id == $value.id))} am-open{/if}">
			<a href="{$value.url}"{if($cate_rs && ($cate_rs.id == $value.id || $cate_rs.parent_id == $value.id))} class="am-active"{/if}>{$value.title}</a>
			<!-- if $value.sublist -->
			<ul class="am-menu-sub am-collapse{if($cate_rs && ($cate_rs.id == $value.id || $cate_rs.parent_id == $value.id))} am-in{/if}">
				<!-- loop from=$value.sublist key=$k value=$v id=$idxx -->
				<li><a href="{$v.url}" title="{$v.title}"{if $cate_rs && $cate_rs.id == $v.id} class="am-active"{/if}>{$v.title}</a></li>
				<!-- /loop -->
			</ul>
			<!-- /if -->
		</li>
		<!-- /loop -->
	</ul>
</nav>
<!-- /if -->
